package com.ptswitch.material.service;

import java.util.List;

import com.ptswitch.material.model.contract.ContractItem;

public interface ContractItemService {

    public List<ContractItem> findByExamine(String id, boolean pass);

    public List<ContractItem> findByReceiving(String id, boolean receiving);

    public List<ContractItem> findByReturn(String id);

    public List<ContractItem> findByContract(String id);

    public boolean existContractItemCode(ContractItem item);

    public String emptyCode(String code);

    public void save(ContractItem item);

    public void saveAll(List<ContractItem> items);

    public void delete(ContractItem item);
    
    public ContractItem findById(String id);
}
